<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Responsive Web UI Kit &amp; Dashboard Template based on Bootstrap">
    <meta name="author" content="AdminKit">
    <meta name="keywords" content="adminkit, bootstrap, web ui kit, dashboard template, admin template">
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/img/icons/icon-48x48.png"/>
    <title>AdminKit</title>
    <link href="${pageContext.request.contextPath}/css/app.css" rel="stylesheet">
</head>

<body>
<div class="wrapper">
    <%@include file="../icn/sidebar.jsp" %>
    <div class="main">
        <%@include file="../icn/head.jsp" %>
        <main>
            <div class="container">
                <div class="row">
                    <div class="col-md-4 offset-3">
                        <div class="panel-heading" style="font-size: 20px;text-align: center;padding-top: 20px;font-weight: bold;color: #0b7ec4" >
                            修改分组
                        </div>
                        <form action="update/${list.id}" method="post" enctype="multipart/form-data">
                            <div class="form-group">
                                <label class="form-label">分组名称</label>
                                <input type="text" class="form-control" name="name" value="${list.name}">
                            </div>
                            <div class="form-group">
                                <label class="form-label">事项个数</label>
                                <input type="number" class="form-control" name="itemCount" value="${list.itemCount}">
                            </div>
                            <div class="form-group">
                                <label class="form-label">图标</label>
                                <input type="file" name="file" value="${list.icon}">
                            </div>
                            <div class="form-group">
                                <label class="form-label">创建时间</label>
                                <p class="form-control"><fmt:formatDate value="${list.createTime}" pattern="yyyy-MM-dd"/></p>
                            </div>
                            <div class="form-group">
                                <label class="form-label">上线状态</label>
                                <div class="custom-controls-stacked">
                                    <label class="custom-control custom-radio">
                                        <input type="radio" class="custom-control-input" name="status" value="1" checked>
                                        <span class="custom-control-label">上线</span>
                                    </label>
                                    <label class="custom-control custom-radio">
                                        <input type="radio" class="custom-control-input" name="status" value="0">
                                        <span class="custom-control-label">下线</span>
                                    </label>
                                </div>
                            </div>
                            <button type="submit" class="btn btn-primary">提交</button><a type="button" class="btn btn-primary" href="${pageContext.request.contextPath}/system/item/item_group">取消</a>
                        </form>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="${pageContext.request.contextPath}/js/app.js"></script>
</body>
</html>